﻿namespace IceCS.DataStructure.StudentScore
{
    /// <summary>
    /// 学生结点
    /// </summary>
    public class StudentModel
    {

        /// <summary>
        /// 学号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        public int Score { get; set; }

        /// <summary>
        /// 非默认构造函数
        /// </summary>
        /// <param name="id">学号</param>
        /// <param name="name">姓名</param>
        /// <param name="score">分数</param>
        public StudentModel(string id, string name, int score)
        {
            Id = id;
            Name = name;
            Score = score;
        }

        public override string ToString()
        {
            return $"[Id:{Id},Name:{Name},Score:{Score}]";
        }
    }
}
